<div class="form">

	<?php
	$properties = array(
		'id'=>'blacklist-form',
		'enableAjaxValidation'=>false,
	);
	$form = $this->beginWidget('CActiveForm', $properties);
	$htmlOptions = array('size'=>60, 'maxlength'=>255);
	?>

	<p class="note">
		Fields with <span class="required">*</span> are required.
	</p>
	<ul>
		<li>Keyword is space separated value.</li>
		<li>Keyword is case insensitive.</li>
	</ul>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php
		echo $form->labelEx($model, 'type');
		echo $form->dropDownList($model, 'type', $model->typeList);
		echo $form->error($model, 'type');
		?>
	</div>

	<div class="row">
		<?php
		echo $form->labelEx($model, 'value');
		echo $form->textField($model, 'value', $htmlOptions);
		echo $form->error($model, 'value');
		?>
	</div>

	<div class="row buttons">
		<?php
		$label = $model->isNewRecord ? 'Create' : 'Save';
		echo CHtml::submitButton($label);
		?>
	</div>

	<?php $this->endWidget(); ?>

</div><!-- form -->